<?php
class JckBrowserUploadForm extends BaseForm {
  public function configure()
  {
    $this->setWidgets(array(
      'file' => new sfWidgetFormInputFile()
    ));
    
    $this->widgetSchema->setLabels(array(
      'file' => __('Upload a new file',null,'jckckeditor')
    ));
    
    
    $this->setValidators(array(
      'file'  => new sfValidatorFile(array(
        'path' => $this->getOption('upload_path')
      )
    )));
    
    $this->widgetSchema->setNameFormat('uploader[%s]');
  }
}